﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BLL
{
    public class BllConnection:IDisposable
    {
        protected DataAccess.DBDataContext db = null;
        protected BllConnection()
        {
            db = new DataAccess.DBDataContext(System.Configuration.ConfigurationManager.ConnectionStrings["LocalSqlServer"].ConnectionString);
        }
        protected BllConnection(Boolean TrackEnabled)
        {
            db = new DataAccess.DBDataContext(System.Configuration.ConfigurationManager.ConnectionStrings["LocalSqlServer"].ConnectionString);
        }
        public void Dispose()
        {
            //db.Dispose();
            GC.SuppressFinalize(this);
        }
    }
}
